{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>
		{$breadcrumb1}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb2}
		</small>
	</h1>
</div>
<div class="row">
	<div class="col-xs-12">	
		<div class="form-horizontal">	
						
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">默认运费模板 </label>
			<div class="col-sm-10">
				<div class="clearfix">					
						<select class="form-control" name="default_transport_id">							
						{volist name="transport" id="t" }
							<option {if condition="$t['id'] eq config('default_transport_id') "} selected="selected"{/if} value="{$t.id}">{$t.title}</option>
						{/volist}				
						</select>		
				</div>
			</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">提现额度 </label>
			<div class="col-sm-10">
				<div class="clearfix">
					<input class="col-xs-10 col-sm-10 form-control" name="cash_num" type="text" value="{$Think.config.cash_num}" >
				</div>
			</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">使用验证码 </label>
			<div class="col-sm-10">
				<div class="clearfix">					
						<label class="radio-inline"><input type="radio" value="1" checked="checked" name="use_captcha">是</label>	
						<label class="radio-inline"><input type="radio" value="0" name="use_captcha">否</label>				
				</div>
			</div>
			</div>
			
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label no-padding-left"> </label>	
			<div class="col-sm-11">
				<button form="form" type="submit" id="send"  class="btn btn-sm btn-primary">提交</button>		
			</div>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>
$(function(){
	Oscshop.setValue("use_captcha", '{$Think.config.use_captcha}');		

});	
$('#send').click(function(){
	$.post(
		"{:url('admin/Settings/save')}",
		$('input[type=\'text\'],input[type=\'hidden\'],input[type=\'radio\']:checked,textarea,select'),
		function(d){
			art.dialog({
					content:d.success,
					lock: true,
					ok: function () {	 		
				 	  reloadPage(window);    	
				      return false;
				    }
				});	
		}
	);
});
</script>	
{/block}